#include<bits/stdc++.h>

using namespace std;

int main() {
    for (int a = 0; a <= 1; a++)
        for (int b = 0; b <= 1; b++)
            for (int c = 0; c <= 1; c++) {
                cout << a << b << c << endl;
            }


}
